From: Matthias Clasen Date: Tue, 7 Jan 2020 01:03:24 +0000 (-0500) Subject: dragsource: Drop gtk_drag_get_source X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1~1^2~321^2^2~354^2~64 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8b058572f0dcc49cd3774f2e2b4ceafe8317d9cd;p=gtk4.git dragsource: Drop gtk_drag_get_source --- diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c index 4ab51bc148..bee4c4c8c8 100644 --- a/gtk/gtkdragsource.c +++ b/gtk/gtkdragsource.c @@ -618,33 +618,6 @@ gtk_drag_source_set_icon (GtkDragSource *source, source->hot_y = hot_y; } -/** - * gtk_drag_get_source: - * @drag: a #GdkDrag - * - * Obtains the #GtkDragSource from which a #GdkDrag originates. - * - * This function should rarely be needed. Once case where it can - * be used is together with gtk_drop_get_drag(), to determine - * whether a 'local' drag is coming from the same widget. - * - * Returns: (transfer none) (nullable): a #GtkDragSource, or %NULL - */ -GtkDragSource * -gtk_drag_get_source (GdkDrag *drag) -{ - gpointer data; - - g_return_val_if_fail (GDK_IS_DRAG (drag), NULL); - - data = g_object_get_data (G_OBJECT (drag), I_("gtk-drag-source")); - - if (data) - return GTK_DRAG_SOURCE (data); - - return NULL; -} - /** * gtk_drag_source_get_drag: * @source: a #GtkDragSource diff --git a/gtk/gtkdragsource.h b/gtk/gtkdragsource.h index daca3f0752..6570130581 100644 --- a/gtk/gtkdragsource.h +++ b/gtk/gtkdragsource.h @@ -80,9 +80,6 @@ void gtk_drag_source_drag_begin (GtkDragSource *source, GDK_AVAILABLE_IN_ALL void gtk_drag_source_drag_cancel (GtkDragSource *sourcei); -GDK_AVAILABLE_IN_ALL -GtkDragSource * gtk_drag_get_source (GdkDrag *drag); - GDK_AVAILABLE_IN_ALL GdkDrag * gtk_drag_source_get_drag (GtkDragSource *source);